package io.renren.modules.demo.service;

import io.renren.common.entity.XlsUsersDrawsEntity;
import io.renren.common.page.PageData;
import io.renren.common.service.CrudService;
import io.renren.common.utils.Result;
import io.renren.modules.demo.dto.XlsUsersDrawsDTO;
import io.renren.modules.security.entity.SysUserTokenEntity;

import java.util.Map;

/**
 * 用户提现记录
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2020-04-16
 */
public interface XlsUsersDrawsService extends CrudService<XlsUsersDrawsEntity, XlsUsersDrawsDTO> {
    PageData<XlsUsersDrawsDTO> queryPage(Map<String, Object> params);

    XlsUsersDrawsDTO selectXlsUsersDrawsById(Long id);

    void updateXlsUsersDrawsStatus(SysUserTokenEntity byToken, XlsUsersDrawsDTO dto, boolean isPass);

    void updataAuditPass(SysUserTokenEntity byToken, XlsUsersDrawsDTO dto, boolean isPass);

    void updataAuditRefused(SysUserTokenEntity byToken, XlsUsersDrawsDTO dto, boolean isPass);

    void insertCashLog(XlsUsersDrawsDTO dto, int type);
}